<?php
session_start();
include_once("../../../untils/conn.php");
mysqli_query($con, "set names utf8");

// 获取当前正在登录的账号信息的代理
$proxy_acc = $_SESSION["account"];

// 查询proxy表，找到符合条件的数据并输出给前端
$sql = "SELECT * FROM proxy WHERE proxy_acc = '$proxy_acc'";

$result = mysqli_query($con, $sql);
if ($result) {
  $rows = mysqli_fetch_assoc($result);
  $id = $rows["proxy_id"];
 

  $proxy_info = array(
    "puid" => $id,
   
  );
  
  $json_data = json_encode($proxy_info);
  echo $json_data;
}
?>
